#ifndef HTMLATTRIBUTE_H
#define HTMLATTRIBUTE_H

#include <QString>
#include "node.h"

class HtmlAttribute : public Node
{
public:
    HtmlAttribute(const QString& name, const QString& value, const YYLTYPE& loc);
    HtmlAttribute(const QString& name, Node* value, const YYLTYPE& loc);

    QString name() const { return m_name; }
    QString value() const { return m_value; }
    Node* expression() const { return m_expr; }

private:
    QString m_name;
    QString m_value;
    Node* m_expr;
};

#endif // HTMLATTRIBUTE_H
